libxenstat: qmp_read fix and cleanup
authorWei Liu <wei.liu2@citrix.com>
Wed, 8 Apr 2015 16:08:22 +0000 (17:08 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 15 Apr 2015 16:10:58 +0000 (17:10 +0100)
commit6248b7ba6a5d87f26cf9fd23ed748cac5436532b
tree8ac0022ea7b16e4d5269d1da3969730beead1bad
parent99e774937b4d212dd2942064f713a30be41b8d1f
libxenstat: qmp_read fix and cleanup

The second argument of poll(2) is the number of file descriptors. POLLIN
is defined as 1 so it happens to work. Also reduce the size of array to
one as there is only one file descriptor.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Charles Arnold <carnold@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/xenstat/libxenstat/src/xenstat_qmp.c